package Exception;

public class ThreadDemo {

}

class ThreadDemo1 extends Thread{
    public void run(){
        System.out.println("ThreadDemo1");
    }
}
class ThreadDemo2 extends Thread{
    public void run(){
        System.out.println("ThreadDemo2");
    }
}
//Class MyRunnable1 implements Runnable{
//    public void run(){
//        for (int i=0;1<1000;i++){
//            System.out.println();
//        }
//        System.out.println("你是谁啊？");
//    }
//}
//Class MyRunnable2 implements Runnable{
//    public void run(){
//        for (int i=0;1<1000;i++){
//            System.out.println();
//        }
//        System.out.println("我是查水表的？");
//    }
//}